class TextViewLabelBlumberg implements TextView {
	
	private var textViewFormat:TextViewFormat;
	
	private var FONT:String="Tahoma";
	private var SIZE:Number=11;
	private var COLOR:Number=0xddddee;
	private var BOLD:Boolean=true;
	private var ITALIC:Boolean=false;
	private var ALIGN:String="right";
	private var BORDER:Boolean=false;
	private var BORDER_COLOR:Number=0;
	private var BG:Boolean=false;
	private var BG_COLOR:Number=0x0000FF;
	private var LEFT_INDENT:Number=4;
	private var SELECTABLE:Boolean=false;
	private var HTML:Boolean=true;
	private var MULTILINE:Boolean=true;
	private var WORDWRAP:Boolean=true;
	private var TYPE:String="dynamic";

	function TextViewLabelBlumberg() {
		var textFormat:TextFormat=new TextFormat(FONT, SIZE, COLOR, BOLD, ITALIC,null,null,null, ALIGN, LEFT_INDENT);
		textViewFormat=new TextViewFormat(textFormat, TYPE, SELECTABLE, HTML, MULTILINE, WORDWRAP, BORDER, BORDER_COLOR, BG, BG_COLOR);
	}
	
	function getTextViewFormat():TextViewFormat{
	return textViewFormat;
	}
	function setTextViewFormat(format:TextViewFormat):Void{
	textViewFormat=format;
	}

	function formatField(textField:TextField):TextField{
	textField.selectable=getTextViewFormat().getSelectable();
	textField.multiline=getTextViewFormat().getMultiline();
	textField.wordWrap=getTextViewFormat().getWordWrap();
	textField.html=getTextViewFormat().getHtml();
	textField.border=getTextViewFormat().getBorder();
	textField.borderColor=getTextViewFormat().getBorderColor();
	textField.background=getTextViewFormat().getBackground();
	textField.backgroundColor=getTextViewFormat().getBackgroundColor();
	textField.setTextFormat(getTextViewFormat().getTextFormat());

	return textField;
	}
	
} // fin de clase